<template name="gradeBox">
	<view class="grade">
		<navigator class="scrollBlock" v-for="(item , index) in gradeView" :key="index" :url="`/pages/mine/${item.url}`" hover-class="none">
			<image :src="item.path" mode="scaleToFill">
			<view class="gradeTxt">
				<view class="scroll_title">{{item.name}}</view>
				<view class="scroll_center"><text class="iconfont" :class="item.gradeIcon"></text>{{item.grade}}</view>
				<view class="scroll_footer">
					<text>{{item.numbar}}</text><text>{{item.praised}}</text><text>{{item.fans}}</text>
				</view>
				<button class="gradeBtn"  size="mini" :style="{'background':item.followBg}">{{item.follow}}</button>
			</view>
		</navigator>
	</view>
</template>

<script>
	export default {
		name:"bolgBox",
		props:{
			gradeView:{
				url:{
					type: String,
					default: ''
				},
				path:{
					type: String,
					default: ''
				},
				name:{
					type: String,
					default: ''
				},
				gradeIcon:{
					type: String,
					default: ''
				},
				grade:{
					type: String,
					default: ''
				},
				numbar:{
					type: String,
					default: ''
				},
				praised:{
					type: String,
					default: ''
				},
				fans:{
					type: String,
					default: ''
				},
				followBg:{
					type: String,
					default: ''
				},
				follow:{
					type: String,
					default: ''
				},
			}
		},
		data() {
			return {
			}
		},
		methods:{
			
		}
	}	
</script>

<style lang="scss">
	@import "../../icon/iconfont.css";
	.scrollBlock{
		background-color: $uni-bg-color;
		margin-top: $uni-spacing-row-base;
		border-radius: $uni-spacing-row-base;
		display: flex;
		padding: 2%;
		image{
			width: 120rpx;
			height: 120rpx;
			border-radius: $uni-spacing-row-base;
		}
		.gradeTxt{
			padding-left: $uni-spacing-row-lg;
			position: relative;
			width: calc(100% - 120rpx - 30rpx);
			.scroll_footer{
				text{
					letter-spacing: $uni-spacing-row-one;
					padding-right: $uni-spacing-row-lg;
				}
			}
			.gradeBtn{
				position: absolute;
				right: 0;
				top: 0;
			}
		}
	}
</style>
